﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DatabaseCore;
using System.Collections.ObjectModel;
using System.Data.Objects;


namespace ProductTransfer.ViewModel
{
    public class OrderMain
    {
        public ObservableCollection<tbl_Order> Orders
        {
            get
            {
                getQueue();
                return new ObservableCollection<tbl_Order> { new tbl_Order { OrderNo = "1" }, new tbl_Order { OrderNo = "2" } };
            }
            
        }
        public void getQueue()
        {
            using (ExportDBEntities ctx = new ExportDBEntities())
            {
                ObjectParameter Output = new ObjectParameter("output", typeof(Double));
                double input = Convert.ToDouble(5);
                ctx.PriceSum(input , Output);
                var k = Output.Value;

            }
        }
    }
}
